import React from 'react';
import ECharts from '../../../../based/echarts/ECharts';

const EChartsTest = () => {
    let option = {
    title: {
        text: 'ECharts',
    },
    tooltip: {
    },
    legend: {
        data:['销量', '利润', '比率']
    },
    xAxis: {
        data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
    },
    yAxis: {
    },
    series: [
        {
            name: '销量',
            type: 'bar',
            data: [5, 20, 36, 10, 10, 20]
        },
        {
            name: '利润',
            type: 'bar',
            data: [30, 25, 15, 20, 20, 35]
        }]
    };
    return(
        <div>
            <div>
                {/* <ECharts /> */}
                <ECharts option={option} style={{width: '100%', height: '200px'}} />
            </div>
        </div>
    )
}

export default EChartsTest